home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / comm / misc / OLGA_v1-22a.lha / olga / Install-Olga < prev    next >
Text File  |  1999-08-14  |  5KB  |  258 lines

  1. ; Olga Installtion Script
  2. ;$VER Olga-Install 1.22 (14.08.99)
  3.  
  4. (set TESTING 0)
  5. (set InstallEnglish 1) ; 1 = install, 0 = don't install
  6. (set InstallFrench  0) ; 1 = install, 0 = don't install
  7.  
  8.  
  9. ;**************************************************************
  10. ; French strings
  11. ;**************************************************************
  12.  
  13. (if (= @language "français")
  14.  (
  15.   (set #msg_welcome
  16.    (cat
  17.     "\n\n\nBienvenue dans l'installation d'Olga\n\n"
  18.     "Ce script installe la version 1.22 sur votre Amiga.\n\n"
  19.     "Olga © 1998-99 L.D.B SoftWare\n\n"
  20.     "Tous Droits Réservés\n\n"
  21.    )
  22.   )
  23.  
  24.   (set #msg_warn_mui
  25.    (cat
  26.     "\n\nAttention\n\nMUI (Magic User Interface)\n"
  27.     "ne semble pas être installé sur votre système.\n\n"
  28.     "MUI est absolument nécessaire à Olga.\n"
  29.     "MUI © 1993-98 Stefan Stuntz"
  30.    )
  31.   )
  32.  
  33.   (set #msg_assign
  34.    (cat
  35.     "\n\n\nL'installation d'Olga est presque terminée.\n\n"
  36.     "Vous devrez maintenant ajouter un assign dans votre user-startup\n\n\n"
  37.     "Exemple :   ASSIGN OLGA: WORK:OLGA \n\n"
  38.    )
  39.   )
  40.  
  41.   (set #msg_askdestdir
  42.    (cat
  43.     "SVP, choisissez une destination pour \"Olga\".\n"
  44.     "Un répertoire sera créé pour vous."
  45.    )
  46.   )
  47.  
  48.   (set #msg_wichlang
  49.    "SVP, choisissez la langue que vous désirez installer."
  50.   )
  51.  )
  52. )
  53.  
  54. ;**************************************************************
  55. ; English strings
  56. ;**************************************************************
  57.  
  58. (if (= @language "english")  
  59.  (
  60.  (set #msg_welcome
  61.    (cat
  62.      "\nWelcome to Olga installation\n\n"
  63.      "This script installs version 1.22 on your Amiga.\n\n"
  64.      "Olga © 1998-99 L.D.B SoftWare.\n\n"
  65.      "All Rights Reserved\n\n"
  66.    )
  67.  )
  68.  
  69.  (set #msg_warn_mui
  70.   (cat
  71.     "\n\nWarning\n\nMUI (Magic User Interface)\n"
  72.     "seems to be not installed on your system.\n\n"
  73.     "MUI is absolutely needed for Olga to run.\n"
  74.     "MUI © 1993-98 Stefan Stuntz"
  75.   )
  76.  )
  77.  
  78.  (set #msg_assign
  79.   (cat
  80.     "\n\n\nThe installation of Olga is ending.\n\n"
  81.     "You must add an assign in your user-startup\n\n\n"
  82.     "Example :   ASSIGN OLGA: WORK:OLGA \n\n"
  83.   )
  84.  )
  85.  
  86.  (set #msg_askdestdir
  87.    (cat
  88.      "Please, choose a destination for \"Olga\".\n"
  89.      "A directory will be created for you."
  90.    )
  91.  )
  92.  
  93.  (set #msg_wichlang
  94.    "Please, choose witch language you want to install."
  95.  )
  96.  )
  97. )
  98.  
  99.  
  100. ;=======================================================
  101. ;================== Procedures =========================
  102. ;=======================================================
  103.  
  104. (procedure P_copydir dirname
  105.   (copyfiles (infos) (all)
  106.     (source dirname)
  107.     (dest (tackon destination dirname))
  108.   )
  109. )
  110.  
  111. ;=======================================================
  112. ;=================== Settings! =========================
  113. ;=======================================================
  114.  
  115.  
  116. (message #msg_welcome (all))
  117. (welcome)
  118. (complete 0)
  119.  
  120. ;**** teste si mui est installé
  121. (if (= (exists "mui:" (noreq)) 0)
  122.   (message #msg_warnmui)
  123. )
  124.  
  125.  
  126. ;**** get destination directory
  127. (set destdir
  128.   (askdir
  129.     (prompt #msg_askdestdir)
  130.     (help @askdir-help)
  131.     (default "SYS:")
  132.   )
  133. )
  134.  
  135. (set @default-dest (expandpath destdir))
  136. (set destination (tackon destdir "Olga"))
  137.  
  138. ;=======================================================
  139. ;==================== Action ===========================
  140. ;=======================================================
  141.  
  142. (complete 20)
  143.  
  144. (copyfiles
  145.     (source "Olga")
  146.     (dest destination)
  147. )
  148.  
  149.  
  150. (copyfiles
  151.     (source "Olga.info")
  152.     (dest destination)
  153. )
  154.  
  155. (complete 30)
  156.  
  157. (copyfiles
  158.     (source "ReadMe_MUI")
  159.     (dest destination)
  160. )
  161.  
  162. (copyfiles
  163.     (source "ReadMe_MUI.info")
  164.     (dest destination)
  165. )
  166.  
  167. (copyfiles
  168.     (source "logo_ldb.iff")
  169.     (dest destination)
  170. )
  171.  
  172. (copyfiles
  173.     (source "logo_olga.iff")
  174.     (dest destination)
  175. )
  176.  
  177. (copyfiles
  178.     (source "File_id.diz")
  179.     (dest destination)
  180. )
  181.  
  182. (P_copydir "Msg")
  183.  
  184. (complete 50)
  185.  
  186. (P_copydir "Acc")
  187.  
  188. (complete 60)
  189.  
  190. (P_copydir "RNG")
  191.  
  192. (complete 70)
  193.  
  194. (P_copydir "Doc")
  195.  
  196.  
  197. ;(if (exists "Catalogs")
  198.  
  199. (set lang
  200.   (askoptions
  201.     (prompt #msg_wichlang)
  202.     (help @askoptions-help)
  203.     (default 0)
  204.     (choices
  205.       "Français"
  206.       "Anglais"
  207.     )
  208.   )
  209. )
  210.  
  211. (if (BITAND lang 1)
  212.   (
  213.     (copyfiles
  214.       (source (tackon "catalogs/français" "olga.catalog"))
  215.       (dest "locale:Catalogs/français/")
  216.     )
  217.  
  218. (complete 80)
  219.  
  220.     (copyfiles
  221.       (source (tackon "guide/français" "olga.guide"))
  222.       (dest ("%s/doc/" destination) )
  223.     )
  224.  
  225.     (copyfiles
  226.       (source (tackon "guide/français" "olga.guide.info"))
  227.       (dest ("%s/doc/" destination) )
  228.     )
  229.  
  230.   )
  231. )
  232.  
  233. (if (BITAND lang 2)
  234.   (
  235.     (copyfiles
  236.       (source (tackon "catalogs/english" "olga.catalog"))
  237.       (dest "locale:Catalogs/English/")
  238.     )
  239.  
  240. (complete 80)
  241.  
  242.     (copyfiles
  243.       (source (tackon "guide/english" "olga.guide"))
  244.       (dest ("%s/doc/" destination) )
  245.     )
  246.  
  247.     (copyfiles
  248.       (source (tackon "guide/english" "olga.guide.info"))
  249.       (dest ("%s/doc/" destination) )
  250.     )
  251.   )
  252. )
  253.  
  254. (complete 100)
  255.  
  256. (message #msg_assign (all))
  257.  
  258.